CREATE TABLE [dbo].[Ward]
(
[Id] [int] NOT NULL,
[Name] [nvarchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DistrictId] [int] NOT NULL,
[Code] [nchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Ward] ADD CONSTRAINT [PK_Ward] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Ward] ADD CONSTRAINT [FK_Ward_District] FOREIGN KEY ([DistrictId]) REFERENCES [dbo].[District] ([Id])
GO
